using System;
using System.Drawing;
using System.Windows.Forms;
using System.Windows.Media;

namespace Common
{
	[Serializable]
	public class ColorWindow
	{
		private ColorDialog ColorDialog = new ColorDialog();

		public System.Windows.Media.Color Color
		{
			get
			{
				return System.Windows.Media.Color.FromArgb(ColorDialog.Color.A, ColorDialog.Color.R, ColorDialog.Color.G, ColorDialog.Color.B);
			}
			set
			{
				ColorDialog.Color = System.Drawing.Color.FromArgb(value.A, value.R, value.G, value.B);
			}
		}

		public DialogResult ShowDialog()
		{
			return ColorDialog.ShowDialog();
		}
	}
}
